package com.lsu.chain.homework;

/**
 * 玩家1
 *
 * @Author wang suo
 * @Date 2020/11/26 0026 15:21
 * @Version 1.0
 */
public class Play1 extends AbstractChain {
    @Override
    public void handlerRequest(String request) {
        if ("黑桃Q".equals(request)) {
            System.out.println("玩家1是猪");
        } else {
            if (getNext() != null) {
                getNext().handlerRequest(request);
            } else {
                System.out.println("没有人是猪");
            }
        }
    }
}
